package com.atguigu.gmall.order.client;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author: 李旭
 * @create: 2021-07-23 14:42
 **/
@FeignClient(name = "service-order")
public interface OrderFeignClient {

    //查询结算页面
    @GetMapping("/api/order/trade")
    public Map<String, Object> trade();
    @GetMapping("/api/order/getOrderInfo/{orderId}")
    OrderInfo getOrderInfo(@PathVariable Long orderId);
}
